import orderApi from '@/config/server/api/order.js'

function commReportList(info) {
  return orderApi.financialReport.commReportList.fetch(info)
}

function commReportExport(info) {
  return orderApi.financialReport.commReportExport.fetch(info)
}

function summaryList(info) {
  return orderApi.financialReport.summaryList.fetch(info)
}

function summaryExport(info) {
  return orderApi.financialReport.summaryExport.fetch(info)
}

function summaryDownload(info) {
  return orderApi.financialReport.summaryDownload.fetch(info)
}

function summaryUpload() {
  let upload = orderApi.financialReport.summaryUpload
  upload.setData()
  return upload
}

function detailList(info) {
  return orderApi.financialReport.detailList.fetch(info)
}

function detailExport(info) {
  return orderApi.financialReport.detailExport.fetch(info)
}

function roomDetailList(info) {
  return orderApi.financialReport.roomDetailList.fetch(info)
}

function roomDetailListExport(info) {
  return orderApi.financialReport.roomDetailListExport.fetch(info)
}

function roomBonusStatistics(info) {
  return orderApi.financialReport.roomBonusStatistics.fetch(info)
}

function incentiveList(info) {
  return orderApi.financialReport.incentiveList.fetch(info)
}

function incentiveListExport(info) {
  return orderApi.financialReport.incentiveListExport.fetch(info)
}

function incentiveStatistics(info) {
  return orderApi.financialReport.incentiveStatistics.fetch(info)
}

function allowanceList(info) {
  return orderApi.financialReport.allowanceList.fetch(info)
}

function allowanceListExport(info) {
  return orderApi.financialReport.allowanceListExport.fetch(info)
}

function allowanceStatistics(info) {
  return orderApi.financialReport.allowanceStatistics.fetch(info)
}

function JYBonusPush(info) {
  return orderApi.financialReport.JYBonusPush.fetch(info)
}

function exportJYBonusPush(info) {
  return orderApi.financialReport.exportJYBonusPush.fetch(info)
}

function incomeSummary(info) {
  return orderApi.financialReport.incomeSummary.fetch(info)
}

function exportIncomeSummary(info) {
  return orderApi.financialReport.exportIncomeSummary.fetch(info)
}

// 自获客预发表

function getPreBonusSummary(info) {
  return orderApi.commission.preBonusSummary.fetch(info)
}

function exportPreBonusSummaryFun(info) {
  return orderApi.commission.exportPreBonusSummary.fetch(info)
}

export default {
  commReportList,
  commReportExport,
  summaryList,
  summaryExport,
  summaryDownload,
  summaryUpload,
  detailList,
  detailExport,
  roomDetailList,
  roomDetailListExport,
  roomBonusStatistics,
  incentiveList,
  incentiveListExport,
  incentiveStatistics,
  allowanceList,
  allowanceListExport,
  allowanceStatistics,
  JYBonusPush,
  exportJYBonusPush,
  getPreBonusSummary,
  exportPreBonusSummaryFun,
  incomeSummary,
  exportIncomeSummary
}
